/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_mobile_company_info")
//@NamedQueries({@NamedQuery(name = "TMobileCompanyInfo.findAll", query = "SELECT t FROM TMobileCompanyInfo t"), @NamedQuery(name = "TMobileCompanyInfo.findByComId", query = "SELECT t FROM TMobileCompanyInfo t WHERE t.comId = :comId"), @NamedQuery(name = "TMobileCompanyInfo.findByComEnName", query = "SELECT t FROM TMobileCompanyInfo t WHERE t.comEnName = :comEnName"), @NamedQuery(name = "TMobileCompanyInfo.findByComName", query = "SELECT t FROM TMobileCompanyInfo t WHERE t.comName = :comName"), @NamedQuery(name = "TMobileCompanyInfo.findByComUaCharacter", query = "SELECT t FROM TMobileCompanyInfo t WHERE t.comUaCharacter = :comUaCharacter"), @NamedQuery(name = "TMobileCompanyInfo.findByArea", query = "SELECT t FROM TMobileCompanyInfo t WHERE t.area = :area"), @NamedQuery(name = "TMobileCompanyInfo.findByState", query = "SELECT t FROM TMobileCompanyInfo t WHERE t.state = :state"), @NamedQuery(name = "TMobileCompanyInfo.findByUpdTime", query = "SELECT t FROM TMobileCompanyInfo t WHERE t.updTime = :updTime"), @NamedQuery(name = "TMobileCompanyInfo.findByRanking", query = "SELECT t FROM TMobileCompanyInfo t WHERE t.ranking = :ranking"), @NamedQuery(name = "TMobileCompanyInfo.findByUaFirstCharacter", query = "SELECT t FROM TMobileCompanyInfo t WHERE t.uaFirstCharacter = :uaFirstCharacter")})
public class TMobileCompanyInfo implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "COM_ID")
    private Integer comId;
    @Column(name = "COM_EN_NAME")
    private String comEnName;
    @Column(name = "COM_NAME")
    private String comName;
    @Column(name = "COM_UA_CHARACTER")
    private String comUaCharacter;
    @Column(name = "AREA")
    private Character area;
    @Column(name = "STATE")
    private Character state;
    @Column(name = "UPD_TIME")
    @Temporal(TemporalType.DATE)
    private Date updTime;
    @Column(name = "RANKING")
    private Integer ranking;
    @Column(name = "UA_FIRST_CHARACTER")
    private String uaFirstCharacter;

    public TMobileCompanyInfo() {
    }

    public TMobileCompanyInfo(Integer comId) {
        this.comId = comId;
    }

    public Integer getComId() {
        return comId;
    }

    public void setComId(Integer comId) {
        this.comId = comId;
    }

    public String getComEnName() {
        return comEnName;
    }

    public void setComEnName(String comEnName) {
        this.comEnName = comEnName;
    }

    public String getComName() {
        return comName;
    }

    public void setComName(String comName) {
        this.comName = comName;
    }

    public String getComUaCharacter() {
        return comUaCharacter;
    }

    public void setComUaCharacter(String comUaCharacter) {
        this.comUaCharacter = comUaCharacter;
    }

    public Character getArea() {
        return area;
    }

    public void setArea(Character area) {
        this.area = area;
    }

    public Character getState() {
        return state;
    }

    public void setState(Character state) {
        this.state = state;
    }

    public Date getUpdTime() {
        return updTime;
    }

    public void setUpdTime(Date updTime) {
        this.updTime = updTime;
    }

    public Integer getRanking() {
        return ranking;
    }

    public void setRanking(Integer ranking) {
        this.ranking = ranking;
    }

    public String getUaFirstCharacter() {
        return uaFirstCharacter;
    }

    public void setUaFirstCharacter(String uaFirstCharacter) {
        this.uaFirstCharacter = uaFirstCharacter;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (comId != null ? comId.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TMobileCompanyInfo)) {
            return false;
        }
        TMobileCompanyInfo other = (TMobileCompanyInfo) object;
        if ((this.comId == null && other.comId != null) || (this.comId != null && !this.comId.equals(other.comId))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TMobileCompanyInfo[comId=" + comId + "]";
    }

}
